package com.glsc.ngateway.ldap;


import com.glsc.ngateway.common.api.platform.feign.IFeignPlatformService;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@EntityScan(basePackages = {"com.glsc.ngateway.common.base.domain","com.glsc.ngateway.ldap.domain"})
@ComponentScan(basePackages = {
        "com.glsc.ngateway.ldap", "com.glsc.ngateway.common.base","com.glsc.ngateway.ldap.domain","com.glsc.ngateway.ldap.repo",
        "com.glsc.ngateway.common.api.common", "com.glsc.ngateway.common.api.ldap",
        "com.glsc.ngateway.common.api.platform"})
@EnableFeignClients(basePackageClasses = {IFeignPlatformService.class, com.glsc.ngateway.common.api.shortmsg.feign.IFeignShortmsgService.class})
@EnableEurekaClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class LdapApplication {

    public static void main(String[] args) {


        System.out.println("项目Start");
        // 创建服务
        SpringApplication.run(LdapApplication.class, args);
        System.out.println("finish web service");
    }


}
